package com.medical.controller;

import com.medical.entity.UserEntity;
import com.medical.mapper.InspectionMapper;
import com.medical.service.PrescriptionService;
import com.medical.tool.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/inspction")
public class InspectionController {
    @Autowired
    private InspectionMapper inspectionMapper;
    @PostMapping("/find")
    public R selectByUserName(UserEntity userEntity) {
        return new R(200, "查询成功", inspectionMapper.selectByUserName(userEntity));
    }
}
